﻿using System;
using System.ComponentModel;

namespace YArchitech.HVAC
{
	internal class ConverterRenYuan : ExpandableObjectConverter
	{
		public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
		{
			return true;
		}

		public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
		{
			return true;
		}

		public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
		{
			return new TypeConverter.StandardValuesCollection(((ListAttrRenYuan)context.PropertyDescriptor.Attributes[typeof(ListAttrRenYuan)]).lists);
		}

		public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
		{
			return true;
		}
	}
}
